package W111123.dayinshangpin;

public class Factory {
  public Goods dayin(String type){
	  Goods good = null ;
	  if(type.equals("foods")){
		  good = new Foods();
	  }else if (type.equals("tvs")){
		  good = new TVs();
		  
	  }
	  return good ;
  }
 
}
